/**
 * 
 */
package com.geekteam.masterenglish.utils;

/**
 * @author MTROL
 *
 */
public class Constants {
	// constant of API
    public static final String TYPE_SONG = "song";
    public static final String TYPE_VIDEO = "video";
    public static final String TYPE_PLAYLIST = "playlist";
    public static final String TYPE_ALBUM = "album";
    public static final String TYPE_ARTIST = "artist";
    public static final String TYPE_GENRE = "genre";

    // constant of type serch
    public static final int SEARCH_SONG = 0;
    public static final int SEARCH_SONG_BY_TITLE = 1;
    public static final int SEARCH_SONG_BY_ARTIST = 2;
    public static final int SEARCH_SONG_BY_COMPOSER = 3;
    public static final int SEARCH_SONG_BY_LYRICS = 4;
    public static final int SEARCH_VIDEO = 5;
    public static final int SEARCH_VIDEO_TITLE = 6;
    public static final int SEARCH_VIDEO_ARTIST = 7;
    public static final int SEARCH_PLAYLIST = 8;
    public static final int SEARCH_PLAYLIST_TITLE = 9;
    public static final int SEARCH_PLAYLIST_ARTIST = 10;

    // constant of function
    public static final String FUNCTION_DETAIL = "detail";
    public static final String FUNCTION_DETAIL_MINI = "detail-mini";
    public static final String FUNCTION_XML_MINI = "xml-mini";
    public static final String FUNCTION_SEARCH = "search";
    public static final String FUNCTION_LIST_CHART = "list-chart";
    public static final String FUNCTION_CHART_DETAIL = "chart-detail";
    public static final String FUNCTION_LIST_TOPIC = "list-topic";
    public static final String FUNCTION_TOPIC_DETAIL = "topic-detail";
    public static final String FUNCTION_LIST_GENRE = "list-genre";
    public static final String FUNCTION_GENRE_DETAIL = "genre-detail";
    public static final String FUNCTION_SUB_GENRE = "sub-genre";
    public static final String FUNCTION_HOT_CONTENT = "hot-content";
    public static final String FUNCTION_NEW_CONTENT = "new-content";
    public static final String FUNCTION_LIST_ARTIST = "list-artist";
    public static final String FUNCTION_SINGER_INFO = "singer-info";
    public static final String FUNCTION_ARTIST_RELATE = "artist-relate";
    public static final String FUNCTION_RELATE = "relate";
    public static final String FUNCTION_ARTIST_SONG = "artist-song";

    // list error
    public static final int ERROR_SUCCESSFUL = 0;
    public static final int ERROR_DATA = -1;
    public static final int ERROR_PERMISSION = -3;
    public static final int ERROR_INVALID = -4;
    
    public interface BundleKey{
    	public static final String NAVIGATION_POS = "navigation_pos";
    	
    	//request service
    	public static final String TYPE_REQUEST = "typeRequest";
    	public static final String DATA_REQUEST = "dataRequest";
    	
    	public static final String MAIN_KEY = "mainKey";
    	public static final String FLAG_KEY = "flag";
    	
    	public static final String URL = "url";
    	public static final String TITLE = "title";
    	public static final String BOOK = "book";
    }
    
    public interface TypeRequest{
    	public static final int GET_DETAIL_LESSION = 1;
    	public static final int GET_DETAIL_LESSION_MINI = 2;
    	public static final int CACHE = 3;
    	public static final int DOWNLOAD = 4;
    }
    
    public interface FlagActivity{
    	public static final int FLAG_LIST_LESSION = 1;
    	public static final int FLAG_DETAIL_LESSION = 2;
    }
    
    public interface SharePreference{
    	public static final String MAIN_KEY = "masterEnglish";
    	public static final String IS_FIRST_TIME = "isFirstTime";
    }
}
